package lab02.Test11;

/**
 * Created by ASUS on 2017/10/25.
 */
public class Rectangle implements Printx {
   double width,height;
   public double getArea(){
       double area = width*height;
       return area;
   }public double getAroundLong(){
       double AroundLong = (width*height)*2.0;
       return AroundLong;
    }
    public void printMyWay(){
       System.out.println("面积是："+getArea()+"周长是："+getAroundLong());
    }
}
